cmake_minimum_required(VERSION 3.0)
project(JNI)

SET( SRC_LIST
     src/main/jni/l_structure.c
	 src/main/jni/l_memory.c
	 src/main/jni/l_simple.c
	 src/main/jni/native-lib.cpp
)

SET( LIBRARY_OUTPUT_PATH lib  )

find_package(JNI REQUIRED)
include_directories(${JAVA_INCLUDE_PATH})
include_directories(${JAVA_INCLUDE_PATH2})


ADD_LIBRARY(
	# set the name of the library
	native-lib

	SHARED

	${SRC_LIST} )

# TARGET_INCLUDE_DIRECTORIES(native-lib PUBLIC src/main/jni/)
